package com.example.sxt_practise.GOF23.singleton;

/**
 * @author gaofeng
 * @date 2022年05月18日 21:05
 */
public class SingletonTest04 {

    private static class SingletonClassInstance {
        private static final SingletonTest04 instance = new SingletonTest04() ;
    }

    public static SingletonTest04 getInstance() {
        return SingletonClassInstance.instance ;
    }

    private SingletonTest04() {
    }
}
